package com.rush.manageepac.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.sql.Date;

/**
 * @outher zhy
 * 2022-08-30
 */
@Data
@NoArgsConstructor
public class Daily01 {
    private Integer id;
    private String type;
    private String name;
    private String sex;
    private Integer age;
    private String classes;
    private Double temperature;
    private String health;
    private String remarks;
    @JsonFormat(pattern = "yyyy-MM-dd")//返回
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date date;

    public Daily01(Integer id, String type, String name, String sex, Integer age, String classes, Double temperature, String health, String remarks, Date date) {
        this.id = id;
        this.type = type;
        this.name = name;
        this.sex = sex;
        this.age = age;
        this.classes = classes;
        this.temperature = temperature;
        this.health = health;
        this.remarks = remarks;
        this.date = date;
    }
}
